import {
  UPDATE_DIYLIST
} from './action-types'

type State = {
  categoryItem: any
}

const INITIAL_STATE: State = {
  categoryItem: undefined
}
export default function user(state = INITIAL_STATE, action) {
  switch (action.type) {
    case UPDATE_DIYLIST:
      console.log('action:', action.categoryItem)
      return {
        ...state,
        categoryItem: action.categoryItem
      }
    default:
      return state
  }
}